#ifndef __AT24CXX_H
#define __AT24CXX_H

#include "debug.h"

/* EEPROM DATA ADDRESS Length Definition */
#define Address_8bit     0
#define Address_16bit    1

/* EERPOM DATA ADDRESS Length Selection */
//#define Address_Lenth    Address_8bit
#define Address_Lenth   Address_16bit

/* Function Prototypes */
void AT24CXX_Init(void);
u8 AT24CXX_ReadOneByte(u16 ReadAddr);
void AT24CXX_WriteOneByte(u16 WriteAddr, u8 DataToWrite);
void AT24CXX_Read(u16 ReadAddr, u8 *pBuffer, u16 NumToRead);
void AT24CXX_Write(u16 WriteAddr, u8 *pBuffer, u16 NumToWrite);

#endif
